import request from "@/config/request.js";

const userApi = {
  login: "/user/login",
  logout: "/user/logout",
};


/**
 * 登录
 * @param {*} params
 * @returns
 */
export const login = params => {
  return request.post(userApi.login, params, {
    message: 'custom'
  });
};

/**
 * 退出
 * @param {*} params
 * @returns
 */
export const logout = (params = {}) => {
  return request.get(userApi.logout, {
    params,
    message: 'custom'
  });
};
